package com.greenleaf.entity;

import org.springframework.stereotype.Component;
/**
 * 订单明细
 * */
@Component
public class OrderDetail {
private Integer odId;//编号
private Integer pdtId;//所属商品
private String pdtName;//商品名称
private double unit;//单价
private Integer odNumeber;//数量
private Integer odTotal;//小计
private String orderId;//所属订单
private String pdtUrl;//商品链接
public Integer getOdId() {
	return odId;
}
public void setOdId(Integer odId) {
	this.odId = odId;
}
public Integer getPdtId() {
	return pdtId;
}
public void setPdtId(Integer pdtId) {
	this.pdtId = pdtId;
}
public String getPdtName() {
	return pdtName;
}
public void setPdtName(String pdtName) {
	this.pdtName = pdtName;
}
public double getUnit() {
	return unit;
}
public void setUnit(double unit) {
	this.unit = unit;
}
public Integer getOdNumeber() {
	return odNumeber;
}
public void setOdNumeber(Integer odNumeber) {
	this.odNumeber = odNumeber;
}
public Integer getOdTotal() {
	return odTotal;
}
public void setOdTotal(Integer odTotal) {
	this.odTotal = odTotal;
}
public String getOrderId() {
	return orderId;
}
public void setOrderId(String orderId) {
	this.orderId = orderId;
}
public String getPdtUrl() {
	return pdtUrl;
}
public void setPdtUrl(String pdtUrl) {
	this.pdtUrl = pdtUrl;
}
public OrderDetail(Integer odId, Integer pdtId, String pdtName, double unit, Integer odNumeber, Integer odTotal, String orderId,
		String pdtUrl) {
	super();
	this.odId = odId;
	this.pdtId = pdtId;
	this.pdtName = pdtName;
	this.unit = unit;
	this.odNumeber = odNumeber;
	this.odTotal = odTotal;
	this.orderId = orderId;
	this.pdtUrl = pdtUrl;
}
public OrderDetail() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "Orderdetail [odId=" + odId + ", pdtId=" + pdtId + ", pdtName=" + pdtName + ", unit=" + unit + ", odNumeber="
			+ odNumeber + ", odTotal=" + odTotal + ", orderId=" + orderId + ", pdtUrl=" + pdtUrl + "]";
}

}
